<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.7"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DGRv2: model/dgr-udp-application.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">DGRv2<span id="projectnumber">&#160;2-dev</span>
   </div>
   <div id="projectbrief">A Delay-Guaranteed Routing Protocol model in ns-3</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('dc/d8d/dgr-udp-application_8h_source.html','../../'); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">dgr-udp-application.h</div></div>
</div><!--header-->
<div class="contents">
<a href="../../dc/d8d/dgr-udp-application_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/* -*- Mode:C++; c-file-style:&quot;gnu&quot;; indent-tabs-mode:nil; -*- */</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="preprocessor">#ifndef DGR_UDP_APPLICATION_H</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="preprocessor">#define DGR_UDP_APPLICATION_H</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span> </div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="preprocessor">#include &quot;ns3/core-module.h&quot;</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="preprocessor">#include &quot;ns3/network-module.h&quot;</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="preprocessor">#include &quot;ns3/point-to-point-module.h&quot;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#include &quot;ns3/applications-module.h&quot;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#include &quot;ns3/internet-module.h&quot;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#include &quot;ns3/flow-monitor-module.h&quot;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../d7/d2e/namespacens3.html">ns3</a> {</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html">   16</a></span><span class="keyword">class </span><a class="code hl_class" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html">DGRUdpApplication</a> : <span class="keyword">public</span> <a class="code hl_class" href="../../de/d6b/class_application.html">Application</a></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span>{</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span> </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span>  <a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a789f5dd5d50db1e9d60f7f7618098f0d">DGRUdpApplication</a> ();</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span>  <a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ad7423806aaf0be2db0e87be4d30dae7f">~DGRUdpApplication</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span>  <span class="keyword">static</span> TypeId <a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#adf5ede44035ee65db58c501d67f01d07">GetTypeId</a> (<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span>  </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a2e5af196e076be85b8442c5375bc3e7e">Setup</a> (Ptr&lt;Socket&gt; socket,</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>              Address sinkAddress,</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span>              uint32_t packetSize,</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span>              uint32_t nPackets,</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span>              DataRate dataRate,</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span>              uint32_t budget,</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span>              <span class="keywordtype">bool</span> flag = <span class="keyword">false</span>);</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a2e5af196e076be85b8442c5375bc3e7e">Setup</a> (Ptr&lt;Socket&gt; socket,</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span>              Address sinkAddress,</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span>              uint32_t packetSize,</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span>              uint32_t nPackets,</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span>              DataRate dataRate,</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span>              <span class="keywordtype">bool</span> flag = <span class="keyword">false</span>);</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span> </div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ae7820a661567dee9c180baebda7a4429">ChangeRate</a> (DataRate newDataRate);</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span> </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span> </div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ada9c016c08e91a65da084c790acd4618">StartApplication</a> (<span class="keywordtype">void</span>) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aab68d0f087fac0f3d02e3c8717b8cc21">StopApplication</a> (<span class="keywordtype">void</span>) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span> </div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a217460003efed056634b84d512c0f47b">ScheduleTx</a> ();</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span>  <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a844392732fe5f6e197992c862c4151db">SendPacket</a> ();</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span> </div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aab22ae4139e567c50bacd3e231407147">   79</a></span>  Ptr&lt;Socket&gt; <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aab22ae4139e567c50bacd3e231407147">m_socket</a>;   </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a054ebc8dca3d709e0ef224465ec2d9bc">   80</a></span>  Address <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a054ebc8dca3d709e0ef224465ec2d9bc">m_peer</a>;         </div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ae51a9c8759e37e18a79e058ef519bcce">   81</a></span>  uint32_t <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ae51a9c8759e37e18a79e058ef519bcce">m_packetSize</a>;  </div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a96e0bf33b34279f8ac18d854702da5e5">   82</a></span>  uint32_t <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a96e0bf33b34279f8ac18d854702da5e5">m_nPackets</a>;    </div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a0c89a7a5f07d90b347e46045b03e7c7a">   83</a></span>  DataRate <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a0c89a7a5f07d90b347e46045b03e7c7a">m_dataRate</a>;    </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aec2ba587631beecd7da9f53b39909706">   84</a></span>  EventId <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aec2ba587631beecd7da9f53b39909706">m_sendEvent</a>;    </div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a592e26fa24bf64e140f33f6853b7c2f9">   85</a></span>  <span class="keywordtype">bool</span> <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a592e26fa24bf64e140f33f6853b7c2f9">m_running</a>;         </div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#abca558ff6138a432a1ed7413b2fe2fd7">   86</a></span>  uint32_t <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#abca558ff6138a432a1ed7413b2fe2fd7">m_packetSent</a>;  </div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#abd5375f6282c6727baa7fb565cff8a3e">   87</a></span>  uint32_t <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#abd5375f6282c6727baa7fb565cff8a3e">m_budget</a>;      </div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a3cb6df6b08f1d2e547e56bee6581a5fc">   88</a></span>  <span class="keywordtype">bool</span> <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a3cb6df6b08f1d2e547e56bee6581a5fc">m_flag</a>;            </div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a1df7eb2d3df2b8170a9fc452e0b2a49b">   89</a></span>  <span class="keywordtype">bool</span> <a class="code hl_variable" href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a1df7eb2d3df2b8170a9fc452e0b2a49b">m_vbr</a>;             </div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span>};</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span> </div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span>} <span class="comment">// namespace ns3</span></div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span><span class="preprocessor">#endif </span><span class="comment">/* DGR_APPLICATION_H */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span> </div>
<div class="ttc" id="aclass_application_html"><div class="ttname"><a href="../../de/d6b/class_application.html">Application</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html">ns3::DGRUdpApplication</a></div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00016">dgr-udp-application.h:17</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_a054ebc8dca3d709e0ef224465ec2d9bc"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a054ebc8dca3d709e0ef224465ec2d9bc">ns3::DGRUdpApplication::m_peer</a></div><div class="ttdeci">Address m_peer</div><div class="ttdoc">The destination address.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00080">dgr-udp-application.h:80</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_a0c89a7a5f07d90b347e46045b03e7c7a"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a0c89a7a5f07d90b347e46045b03e7c7a">ns3::DGRUdpApplication::m_dataRate</a></div><div class="ttdeci">DataRate m_dataRate</div><div class="ttdoc">The data rate to use.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00083">dgr-udp-application.h:83</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_a1df7eb2d3df2b8170a9fc452e0b2a49b"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a1df7eb2d3df2b8170a9fc452e0b2a49b">ns3::DGRUdpApplication::m_vbr</a></div><div class="ttdeci">bool m_vbr</div><div class="ttdoc">true meanse VBR</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00089">dgr-udp-application.h:89</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_a217460003efed056634b84d512c0f47b"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a217460003efed056634b84d512c0f47b">ns3::DGRUdpApplication::ScheduleTx</a></div><div class="ttdeci">void ScheduleTx()</div><div class="ttdoc">Schedule a new transmission.</div><div class="ttdef"><b>Definition</b> <a href="../../d0/ded/dgr-udp-application_8cc_source.html#l00149">dgr-udp-application.cc:149</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_a2e5af196e076be85b8442c5375bc3e7e"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a2e5af196e076be85b8442c5375bc3e7e">ns3::DGRUdpApplication::Setup</a></div><div class="ttdeci">void Setup(Ptr&lt; Socket &gt; socket, Address sinkAddress, uint32_t packetSize, uint32_t nPackets, DataRate dataRate, uint32_t budget, bool flag=false)</div><div class="ttdoc">Setup the socket.</div><div class="ttdef"><b>Definition</b> <a href="../../d0/ded/dgr-udp-application_8cc_source.html#l00061">dgr-udp-application.cc:61</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_a3cb6df6b08f1d2e547e56bee6581a5fc"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a3cb6df6b08f1d2e547e56bee6581a5fc">ns3::DGRUdpApplication::m_flag</a></div><div class="ttdeci">bool m_flag</div><div class="ttdoc">The packet flag.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00088">dgr-udp-application.h:88</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_a592e26fa24bf64e140f33f6853b7c2f9"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a592e26fa24bf64e140f33f6853b7c2f9">ns3::DGRUdpApplication::m_running</a></div><div class="ttdeci">bool m_running</div><div class="ttdoc">True if the application is running.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00085">dgr-udp-application.h:85</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_a789f5dd5d50db1e9d60f7f7618098f0d"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a789f5dd5d50db1e9d60f7f7618098f0d">ns3::DGRUdpApplication::DGRUdpApplication</a></div><div class="ttdeci">DGRUdpApplication()</div><div class="ttdef"><b>Definition</b> <a href="../../d0/ded/dgr-udp-application_8cc_source.html#l00024">dgr-udp-application.cc:24</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_a844392732fe5f6e197992c862c4151db"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a844392732fe5f6e197992c862c4151db">ns3::DGRUdpApplication::SendPacket</a></div><div class="ttdeci">void SendPacket()</div><div class="ttdoc">Send a packet</div><div class="ttdef"><b>Definition</b> <a href="../../d0/ded/dgr-udp-application_8cc_source.html#l00121">dgr-udp-application.cc:121</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_a96e0bf33b34279f8ac18d854702da5e5"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#a96e0bf33b34279f8ac18d854702da5e5">ns3::DGRUdpApplication::m_nPackets</a></div><div class="ttdeci">uint32_t m_nPackets</div><div class="ttdoc">The number of packet to send.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00082">dgr-udp-application.h:82</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_aab22ae4139e567c50bacd3e231407147"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aab22ae4139e567c50bacd3e231407147">ns3::DGRUdpApplication::m_socket</a></div><div class="ttdeci">Ptr&lt; Socket &gt; m_socket</div><div class="ttdoc">The transmission socket.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00079">dgr-udp-application.h:79</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_aab68d0f087fac0f3d02e3c8717b8cc21"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aab68d0f087fac0f3d02e3c8717b8cc21">ns3::DGRUdpApplication::StopApplication</a></div><div class="ttdeci">void StopApplication(void) override</div><div class="ttdef"><b>Definition</b> <a href="../../d0/ded/dgr-udp-application_8cc_source.html#l00107">dgr-udp-application.cc:107</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_abca558ff6138a432a1ed7413b2fe2fd7"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#abca558ff6138a432a1ed7413b2fe2fd7">ns3::DGRUdpApplication::m_packetSent</a></div><div class="ttdeci">uint32_t m_packetSent</div><div class="ttdoc">The number of packets sent.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00086">dgr-udp-application.h:86</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_abd5375f6282c6727baa7fb565cff8a3e"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#abd5375f6282c6727baa7fb565cff8a3e">ns3::DGRUdpApplication::m_budget</a></div><div class="ttdeci">uint32_t m_budget</div><div class="ttdoc">The budget time in millisecond.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00087">dgr-udp-application.h:87</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_ad7423806aaf0be2db0e87be4d30dae7f"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ad7423806aaf0be2db0e87be4d30dae7f">ns3::DGRUdpApplication::~DGRUdpApplication</a></div><div class="ttdeci">~DGRUdpApplication() override</div><div class="ttdef"><b>Definition</b> <a href="../../d0/ded/dgr-udp-application_8cc_source.html#l00039">dgr-udp-application.cc:39</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_ada9c016c08e91a65da084c790acd4618"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ada9c016c08e91a65da084c790acd4618">ns3::DGRUdpApplication::StartApplication</a></div><div class="ttdeci">void StartApplication(void) override</div><div class="ttdef"><b>Definition</b> <a href="../../d0/ded/dgr-udp-application_8cc_source.html#l00096">dgr-udp-application.cc:96</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_adf5ede44035ee65db58c501d67f01d07"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#adf5ede44035ee65db58c501d67f01d07">ns3::DGRUdpApplication::GetTypeId</a></div><div class="ttdeci">static TypeId GetTypeId(void)</div><div class="ttdoc">Register this type.</div><div class="ttdef"><b>Definition</b> <a href="../../d0/ded/dgr-udp-application_8cc_source.html#l00045">dgr-udp-application.cc:45</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_ae51a9c8759e37e18a79e058ef519bcce"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ae51a9c8759e37e18a79e058ef519bcce">ns3::DGRUdpApplication::m_packetSize</a></div><div class="ttdeci">uint32_t m_packetSize</div><div class="ttdoc">The packet size.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00081">dgr-udp-application.h:81</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_ae7820a661567dee9c180baebda7a4429"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#ae7820a661567dee9c180baebda7a4429">ns3::DGRUdpApplication::ChangeRate</a></div><div class="ttdeci">void ChangeRate(DataRate newDataRate)</div><div class="ttdoc">Update the sending rate.</div><div class="ttdef"><b>Definition</b> <a href="../../d0/ded/dgr-udp-application_8cc_source.html#l00169">dgr-udp-application.cc:169</a></div></div>
<div class="ttc" id="aclassns3_1_1_d_g_r_udp_application_html_aec2ba587631beecd7da9f53b39909706"><div class="ttname"><a href="../../d5/dbe/classns3_1_1_d_g_r_udp_application.html#aec2ba587631beecd7da9f53b39909706">ns3::DGRUdpApplication::m_sendEvent</a></div><div class="ttdeci">EventId m_sendEvent</div><div class="ttdoc">Send event.</div><div class="ttdef"><b>Definition</b> <a href="../../dc/d8d/dgr-udp-application_8h_source.html#l00084">dgr-udp-application.h:84</a></div></div>
<div class="ttc" id="anamespacens3_html"><div class="ttname"><a href="../../d7/d2e/namespacens3.html">ns3</a></div><div class="ttdef"><b>Definition</b> <a href="../../d5/d65/dgr-application-helper_8cc_source.html#l00027">dgr-application-helper.cc:27</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_3f14f6767c31cb4a1d22c13c18cc6fc3.html">model</a></li><li class="navelem"><a class="el" href="../../dc/d8d/dgr-udp-application_8h.html">dgr-udp-application.h</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7 </li>
  </ul>
</div>
</body>
</html>
